<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="waeather, forecast, australia weather, school temparature, school weather" />
<meta name="description" content="Townsville Weather Simulation" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Townsville Weather Simulation</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />

<script language="javascript">

function validate_form(thisForm)
{
	
	if(thisForm.fname.value == null || thisForm.fname.value == "")
	{
		alert("Please enter your First name");
		thisForm.fname.focus();
		return false;		
	}

	if(thisForm.lname.value == null || thisForm.lname.value == "")
	{
		alert("Please enter your Last name");
		thisForm.lname.focus();
		return false;
	}

	if(thisForm.email.value == null || thisForm.email.value == "")
	{
		alert("Please enter your E-mail");
		thisForm.email.focus();
		return false;
	}

	if(thisForm.phone.value == null || thisForm.phone.value == "")
	{
		alert("Please enter your Phone number");
		thisForm.phone.focus();
		return false;
	}

	if(thisForm.comment.value == null || thisForm.comment.value == "")
	{
		alert("Please enter your comment");
		thisForm.comment.focus();
		return false;
	}

	return true;
}

</script>

<!-- 

Google Analytics code implemtion block, The ID below should match with Google analytics registartion. Updating below code block before end of </head> tag

  _gaq.push(['_setAccount', 'UA-19282567-1']);


-->

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19282567-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
	<div id="header">
		<div id="logo">
            <img src="images/weather.jpg" width=900px height=150px border=0 />
		</div>
	</div>
	<!-- end #header -->
	<div id="menu">
		
		<ul>
			<li><a href="index.php">Townsville Weather</a></li>
			<li><a href="wnews.php">Weather News</a></li>
			<li><a href="videos.php">Knowledge Repository</a></li>
			<li><a href="aboutus.php">Abous Us</a></li>
            <li><a href="feedback.php">Feedback</a></li>
			<li><a href="contactus.php">Contact Us</a></li>
		</ul>
		
	</div>
	<!-- end #menu -->

<div id="wrapper">
<div class="btm">
	<div id="page">
		<div id="content" align=center>
			
				<h1 class="title" align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">Feedback</a></h1>
			
 						<Form name=feedback action=writeFeedback.php method=post onsubmit="return validate_form(this);" >
 						<table>
							<tr><td>First name:</td><td><input type=text maxlength=30 name=fname><br><br></td></tr>
							<tr><td>Last name: </td><td><input type=text maxlength=30 name=lname><br><br></td></tr>
							<tr><td>Email:    </td><td><input type=text maxlength=100 name=email><br><br></td></tr>
							<tr><td>Phone:    </td><td><input type=text maxlength=20 name=phone><br><br></td></tr>
							<tr><td>Age:</td><td>
							<select name=age>
							<option value="1-16">1-16</option>
							<option value="16-20">16-20</option>
							<option value="20-25" selcted>20-25</option>
							<option value="25-35">25-35</option>
							<option value="35-100">Above 35</option>
							</select><br><br></td></tr>
							<tr><td>I like to be contacted:</td><td>
							<input type=checkbox name=iscall CHECKED></input>Phone
							<input type=checkbox name=ismail CHECKED></input>Email<br><br></td></tr>
							<tr><td>My feedback:</td><td><textarea rows=4 cols=20 name=comment></textarea><br/></td></tr>
							<tr><td colspan=2><input type=submit value='Post Feedback'>"</td></tr>
						</table>
						</Form>
									
	
			</div>      
           
            
            
		</div>
		<!-- end #content -->
		
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>

	<div id="footer">
		<p>
        	<a href="index.php">Townsville Weather</a> |
			<a href="wnews.php">Weather News</a> |
			<a href="videos.php">Knowledge Repository</a> |
			<a href="aboutus.php">Abous Us</a> |
            <a href="feedback.php">Feedback</a> |
			<a href="contactus.php">Contact Us</a><br><br>
        Copyright (c) 2010 JCU - Townsville Weather Simulation Project. All rights reserved.</p>
	</div>
	<!-- end #footer -->
</body>
</html>